package com.ssh.entity;

import com.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by zpen on 2018/2/23.
 */
@Entity
@Table(name = "Consumer")
public class Consumer extends BaseEntity {

    private Date created = new Date();
    private String username;
    private String sfzNo;
    private String address;
    private String name;
    private String phone;
    private String remark;
    private String status;

    public Consumer() {
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "created")
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }
    @Column(name = "username")
    public String getUsername() {
        return username;
    }
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    @Column(name = "status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name = "sfz_no")
    public String getSfzNo() {
        return sfzNo;
    }
    public void setSfzNo(String sfzNo) {
        this.sfzNo = sfzNo;
    }
}
